package com.uniandes.modelviewer.tools;

import java.io.File;

import com.uniandes.modelviewer.converter.ModelReader;
import com.uniandes.modelviewer.dsl.EcoreMetaModel;

public class CustomUploadMeta {
	
	private EcoreMetaModel metaModel;
	
	public CustomUploadMeta(File f)
	{
		try {
			ModelReader reader = new ModelReader();
			reader.setMetamodelUri(f.getAbsolutePath());
			reader.darMetamodeloEnDSL();
			metaModel = reader.getMetaModel();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * @return the metaModel
	 */
	public EcoreMetaModel getMetaModel() {
		return metaModel;
	}
	
	

}
